package raku7.server;

import raku.packet.Packet;

public class Message extends Packet{
	private Connection connection;
	private int index;
	public Message(int type,Connection c) {
		super.setType(type);
		this.setConnection(c);
	}
	public Message(int type, int i , Connection c) {
		super.setType(type);
		this.setConnection(c);
		this.index = i;
	}
	public Connection getConnection() {
		return connection;
	}
	public void setConnection(Connection connection) {
		this.connection = connection;
	}
	public int getIndex(){
		return index;
	}
}
